package com.itheima.exerciseTest.test01_09;

public class Test9 {
    public static void main(String[] args) {

    }
    public static double method(InterTest9 interTest9 ,int a, int b){
        double v = interTest9.avgNum(a, b);
        return v;
    }
}

interface InterTest9 {
    double avgNum(int a, int b);
}

class InterTest9Impl implements InterTest9 {

    @Override
    public double avgNum(int a, int b) {
        return Math.pow(a, b);
    }
}
